package meterMonitor.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import meterMonitor.util.excel.SettlementConverter;

import java.sql.Timestamp;

/**
 * 报警记录表
 */
@Data
public class AlertRecPO {
    // @ExcelIgnore
    @ExcelProperty(value = "序号", index = 0)
    private Integer alRecId;

    @ExcelIgnore
    private Integer devId;

    @ColumnWidth(30)
    @ExcelProperty(value = "异常位置", index = 1)
    private String devName;

    //报警类别
    // @ExcelIgnore
    @ColumnWidth(25)
    @ExcelProperty(value = "异常类型", index = 3, converter = SettlementConverter.class)
    private Integer alClass;

    @ExcelIgnore
    private String alClassShow;


    @ColumnWidth(60)
    @ExcelProperty(value = "异常现象", index = 2)
    private String alMessage;

    //异常发生时间
    @ExcelIgnore
    private Timestamp alTime;

    @ColumnWidth(25)
    @ExcelProperty(value = "异常时间", index = 4)
    private String alTimeStr;

    //异常状态
    @ExcelIgnore
    private Integer dealState;

    @ColumnWidth(15)
    @ExcelProperty(value = "异常状态", index = 5)
    private String dealStateShow;

    //异常处理时间
    @ExcelIgnore
    private Timestamp dealedTime;

    @ColumnWidth(25)
    @ExcelProperty(value = "处理时间", index = 6)
    private String dealedTimeStr;

    // 工单号
    @ExcelIgnore
    String lotNum;

    // 料号
    @ExcelIgnore
    String partNum;

    @ExcelIgnore
    private Integer lineId;

    // @ExcelProperty(value = "生产线", index = 1)
    @ExcelIgnore
    private String lineName;

    @ExcelIgnore
    private Integer slotId;

    @ExcelIgnore
    // @ExcelProperty(value = "槽位", index = 2)
    private String slotName;

    public Integer getAlRecId() {
        return alRecId;
    }

    public void setAlRecId(Integer alRecId) {
        this.alRecId = alRecId;
    }

    public Integer getDevId() {
        return devId;
    }

    public void setDevId(Integer devId) {
        this.devId = devId;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public Integer getAlClass() {
        return alClass;
    }

    public void setAlClass(Integer alClass) {
        this.alClass = alClass;
    }

    public String getAlMessage() {
        return alMessage;
    }

    public void setAlMessage(String alMessage) {
        this.alMessage = alMessage;
    }

    public Timestamp getAlTime() {
        return alTime;
    }

    public void setAlTime(Timestamp alTime) {
        this.alTime = alTime;
    }

    public Integer getDealState() {
        return dealState;
    }

    public void setDealState(Integer dealState) {
        this.dealState = dealState;
    }

    public Timestamp getDealedTime() {
        return dealedTime;
    }

    public void setDealedTime(Timestamp dealedTime) {
        this.dealedTime = dealedTime;
    }

    public String getDealStateShow() {
        return dealStateShow;
    }

    public void setDealStateShow(String dealStateShow) {
        this.dealStateShow = dealStateShow;
    }

    public String getAlTimeStr() {
        return alTimeStr;
    }

    public void setAlTimeStr(String alTimeStr) {
        this.alTimeStr = alTimeStr;
    }

    public String getDealedTimeStr() {
        return dealedTimeStr;
    }

    public void setDealedTimeStr(String dealedTimeStr) {
        this.dealedTimeStr = dealedTimeStr;
    }
}
